package com.gray.blog.common.result;

import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * Created  By zhoux 2018/12/04
 **/
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class BasePageResult<T> extends BaseResult{

    @ApiModelProperty(value = "当前页数")
    private Long pageNum;

    @ApiModelProperty(value = "当前页面大小")
    private Long pageSize;

    @ApiModelProperty(value = "总记录数")
    private Long totalNum;

    @ApiModelProperty(value = "总页数")
    private Long totalPage;

    @ApiModelProperty(value = "数据集")
    private List<T> dataList;


}
